<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
 插件菜单
*/
defined('BY_JYA') or exit('error');
list($basicname)=$arguments;
// 是主应用时的菜单
$menus1=array(
	array(
	'title'=>'平台管理','fa'=>'icon-dianpu','url'=>'jy_vote/index/','child'=>array(
		array('title'=>'场景投票','child'=>array(
			array('url'=>'jy_vote/index/','title'=>'场景投票概况'),
			array('url'=>'jy_vote/basic.module_home/cover/ac=index&type=3','title'=>'场景投票入口'),
			array('url'=>'jy_vote/basic.module_home/cover/ac=downline&type=3','title'=>'线下投票入口'),
			array('url'=>'jy_vote/notice/','title'=>'公告列表'),
			array('url'=>'jy_vote/comment/','title'=>'留言列表'),
		)),
		array('title'=>'参数设置','child'=>array(
			array('url'=>'jy_vote/setting/basic','title'=>'基本参数设置'),
			array('url'=>'jy_vote/xieyi/','title'=>'平台协议'),
		)),
	)),
	array('title'=>'分类管理','icon'=>'fa-users','url'=>'jy_vote/groups/list/','child'=>array(
		array('title'=>'分类管理','child'=>array(
			array('url'=>'jy_vote/groups/list','title'=>'活动分类管理'),
			array('url'=>'jy_vote/groups/edit','title'=>'添加分类'),
		)),
	)),
	array('title'=>'活动管理','fa'=>'icon-gengduotupian','url'=>'jy_vote/reply/list/','child'=>array(
		array('title'=>'活动管理','child'=>array(
			array('url'=>'jy_vote/reply/list','title'=>'活动管理'),
			array('url'=>'jy_vote/reply/edit','title'=>'添加活动'),
			array('url'=>'jy_vote/credit3/','title'=>'参与送积分'),
			array('url'=>'core/member.creditlog/','title'=>'积分日志'),
		)),
	)),
	array('title'=>'员工管理','fa'=>'icon-paihao0','url'=>'jy_vote/kfgroups/','child'=>array(
		array('title'=>'员工管理','child'=>array(
			array('url'=>'jy_vote/kfgroups/','title'=>'员工分组'),
			array('url'=>'jy_vote/kefus/','title'=>'员工列表'),
		)),
	)),
	array('title'=>'参赛作品管理','fa'=>'icon-form','url'=>'jy_vote/opus/list/','child'=>array(
		array('title'=>'参赛作品管理','child'=>array(
			array('url'=>'jy_vote/opus/list/','title'=>'待审核参赛作品'),
			array('url'=>'jy_vote/opus/edit','title'=>'添加作品'),
		)),
	)),
	array('title'=>'用户管理','fa'=>'icon-gengduotupian','url'=>'jy_vote/user/list/','child'=>array(
		array('title'=>'用户管理','child'=>array(
			array('url'=>'jy_vote/user/list','title'=>'普通用户列表'),
			array('url'=>'jy_vote/user/vip','title'=>'会员列表'),
			array('url'=>'jy_vote/user/black','title'=>'黑名单'),
			array('url'=>'jy_vote/poster/','title'=>'用户海报'),
		)),
	)),
	array('title'=>'财务管理','fa'=>'icon-dixiaofei','url'=>'jy_vote/red/list/','child'=>array(
		array('title'=>'红包管理','child'=>array(
			array('url'=>'jy_vote/red/list','title'=>'待发送红包列表'),
			array('url'=>'jy_vote/red/ok','title'=>'红包发送成功列表'),
			array('url'=>'jy_vote/red/no','title'=>'红包发送失败列表'),
		)),
		array('title'=>'提现管理','child'=>array(
			array('url'=>'jy_vote/cashrecord/list','title'=>'申请提现列表'),
			array('url'=>'jy_vote/cashrecord/ok','title'=>'审核通过列表'),
			array('url'=>'jy_vote/cashrecord/no','title'=>'审核不通过列表'),
		)),
	)),
	array('title'=>'会员订单','fa'=>'icon-licai','url'=>'jy_vote/viporder/list/','child'=>array(
		array('title'=>'会员订单','child'=>array(
			array('url'=>'jy_vote/viporder/list','title'=>'待支付'),
			array('url'=>'jy_vote/viporder/ok','title'=>'已支付'),
			array('url'=>'jy_vote/viporder/no','title'=>'已取消'),
			array('url'=>'jy_vote/lporder/list/','title'=>'送礼记录'),
		)),
		array('title'=>'作品费','child'=>array(
			array('url'=>'/upfeelog/','title'=>'作品费'),
		)),
	)),
	array('title'=>'应用','isplugin'=>1,'fa'=>'icon-box','url'=>'jy_vote/plugins/','child'=>array(
		array('title'=>'应用列表','child'=>array(
			array('url'=>'jy_vote/plugins/','title'=>'应用面板'),
		)),
	)),
);
// 辅助应用时的菜单
$menus2=array(
	array(
	'title'=>'应用','isplugin'=>0,'icon'=>'fa-users','url'=>'/index//basicname='.$basicname,'child'=>array(
		array('title'=>'场景投票','child'=>array(
			array('url'=>'jy_vote/index//basicname='.$basicname,'title'=>'场景投票概况'),
			array('url'=>'jy_vote/basic.module_home/cover/ac=index&type=3','title'=>'场景投票入口'),
			array('url'=>'notice/','title'=>'公告列表'),
			array('url'=>'comment/','title'=>'评论列表'),
			array('url'=>'kfgroups/','title'=>'审核员组'),
			array('url'=>'kefus/','title'=>'审核员列表'),
		)),
		array('title'=>'参数设置','child'=>array(
			array('url'=>'setting/basic','title'=>'基本参数设置'),
			array('url'=>'xieyi/','title'=>'平台协议'),
		)),
		array('title'=>'活动管理','child'=>array(
			array('url'=>'reply/list','title'=>'活动管理'),
			array('url'=>'reply/edit','title'=>'添加活动'),
		)),
		array('title'=>'作品管理','child'=>array(
			array('url'=>'opus/list','title'=>'待审核作品'),
			array('url'=>'opus/pass','title'=>'已审核作品'),
			array('url'=>'opus/unpass','title'=>'审核不通过'),
			array('url'=>'opus/edit','title'=>'添加作品'),
		)),
		array('title'=>'用户管理','child'=>array(
			array('url'=>'user/list','title'=>'普通用户列表'),
			array('url'=>'user/vip','title'=>'会员列表'),
			array('url'=>'user/black','title'=>'黑名单'),
			array('url'=>'poster/','title'=>'用户海报'),
		)),
		array('title'=>'红包管理','child'=>array(
			array('url'=>'red/list','title'=>'待发送红包列表'),
			array('url'=>'red/ok','title'=>'红包发送成功列表'),
			array('url'=>'red/no','title'=>'红包发送失败列表'),
		)),
		array('title'=>'会员订单','child'=>array(
			array('url'=>'viporder/list','title'=>'待支付'),
			array('url'=>'viporder/ok','title'=>'已支付'),
			array('url'=>'viporder/no','title'=>'已取消'),
		)),
		array('title'=>'提现管理','child'=>array(
			array('url'=>'cashrecord/list','title'=>'申请提现列表'),
			array('url'=>'cashrecord/ok','title'=>'审核通过列表'),
			array('url'=>'cashrecord/no','title'=>'审核不通过列表'),
		)),
		
	))
);
if(empty($basicname)){
	$menus =$menus1?$menus1:$menus2;
	return $menus ;
}else{
	$basicmens = $this->plugin($basicname)->getmenus();
	if(!empty($basicmens)){
		foreach($basicmens as &$v){
			if($v['isplugin'] == 1){
				$v=$menus2[0];
			}
		}
	}
	return $basicmens;
}

